<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
if (USERNAME == "") {
    require_once B_PATH . "login" . EXT;
} else {
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title>Equinox Admin Panel - Dashboard</title>
            <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
            <link rel="stylesheet" href="<?php echo SKIN_BPATH ?>css/style.css" type="text/css" media="all"/>
            <link rel="stylesheet" href="<?php echo SKIN_BPATH ?>css/dashboard.css" type="text/css" media="all"/>
            <link rel="stylesheet" type="text/css" href="<?php echo SKIN_BPATH ?>css/superfish.css" media="screen"/>
            <link rel="stylesheet" href="<?php echo SKIN_BPATH ?>css/horizontal_slider.css" type="text/css" media="all"/>
            <link rel="stylesheet" href="<?php echo SKIN_BPATH ?>css/tooltip.css" type="text/css" media="all"/>
            <link rel="stylesheet" href="<?php echo SKIN_BPATH ?>css/form.css" type="text/css" media="all" />
            <!--[if IE 6]>
            <link rel="stylesheet" href="css/ie.css" type="text/css" media="all"/>
            <![endif]-->
            <script type="text/javascript" src="<?php echo SKIN_BPATH ?>js/jquery-1.3.2.min.js"></script>
            <script type="text/javascript" src="<?php echo SKIN_BPATH ?>js/superfish.js"></script>
            <script type="text/javascript" src="<?php echo SKIN_BPATH ?>js/hoverIntent.js"></script>
            <script type="text/javascript" src="<?php echo SKIN_BPATH ?>js/tooltip.js"></script>
            <script type="text/javascript">
                <!--//--><![CDATA[//><!--
                $(document).ready(function() {
                    $('ul.sf-menu').superfish({
                        delay: 0, // one second delay on mouseout 
                        animation: {opacity: 'show', height: 'show'}, // fade-in and slide-down animation 
                        speed: 45, // faster animation speed 
                        autoArrows: false, // disable generation of arrow mark-up 
                        dropShadows: true                            // disable drop shadows 
                    });
                });
                //--><!]]>
            </script>
            <script type="text/javascript" src="<?php echo SKIN_BPATH ?>js/jquery.jcarousel.pack.js"></script>
            <script type="text/javascript">
                <!--//--><![CDATA[//><!--
            jQuery.easing['easeOutCirc'] = function(x, t, b, c, d, s) {
                    if (t == 0)
                        return b;
                    if (t == d)
                        return b + c;
                    if ((t /= d / 2) < 1)
                        return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
                    return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
                };

                jQuery(document).ready(function() {
                    jQuery('#slider_horizontal').jcarousel({
                        scroll: 1,
                        easing: 'easeOutCirc',
                        animation: 500
                    });
                });

                //--><!]]>
            </script>
            <script type="text/javascript">
                <!--//--><![CDATA[//><!--
            $(document).ready(function() {
                    $('ul#nav_top > li').hover(function() {
                        $('a.change').html('Choose an action below');
                        $('ul:first', this).show();
                    },
                            function() {
                                $('a.change').html('Set Status Approved');
                                $('ul:first', this).hide();
                            });

                    $('ul#nav_top li li').hover(function() {
                        $('ul:first', this).each(function() {
                            $(this).css('top', $(this).parent().position().top);
                            $(this).css('left', $(this).parent().position().left + $(this).parent().width());
                            $(this).show();
                        });
                    },
                            function() {
                                $('ul:first', this).hide();
                            });
                });

                $(document).ready(function() {
                    $('ul#nav_bottom > li').hover(function() {
                        $('a.change').html('Choose an action below');
                        $('ul:first', this).show();
                    },
                            function() {
                                $('a.change').html('Set Status Approved');
                                $('ul:first', this).hide();
                            });

                    $('ul#nav_bottom li li').hover(function() {
                        $('ul:first', this).each(function() {
                            $(this).css('top', $(this).parent().position().top);
                            $(this).css('left', $(this).parent().position().left + $(this).parent().width());
                            $(this).show();
                        });
                    },
                            function() {
                                $('ul:first', this).hide();
                            });
                });
                //--><!]]>
            </script>
        </head>
        <body>
            <div id="container">
                <?php require_once B_PATH . 'template/header' . EXT; ?>
                <div id="content">
                    <div class="content_all">
                        <?php require_once B_PATH . 'template/outer' . EXT; ?>
                        <?php require_once $content_be; ?>
                    </div>
                    <br style="clear:left;"/>
                </div>
                <br style="clear:left;"/>
                <?php require_once B_PATH . 'template/footer' . EXT; ?>
            </div>
        </body>
    </html>
<?php } ?>